package com.lynx.system.feign;

import com.lynx.system.beans.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "user")
public interface UserFeign {
    @GetMapping("/user/findAll/{index}/{limit}")
    public Object findAll(@PathVariable int index, @PathVariable int limit);
    @GetMapping("/user/findCount")
    public Object findCount();
    @GetMapping("/user/findById/{id}")
    public Object findById(@PathVariable long id);
    @PostMapping("/user/addUser")
    public Object addUser(@RequestBody User user);
    @PostMapping("/user/editUser")
    public Object editUser(@RequestBody User user);
    @DeleteMapping("/user/removeUser/{id}")
    public Object removeUser(@PathVariable int id);
}
